# -*- coding: utf-8 -*-
from PyQt4 import QtCore, QtGui

from images import images_rc

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s


class UiAddDb(object):

    def __init__(self):
        """
        
        """
        self.iconImage()



    def iconImage(self):
        """
            Carrega os icones dos botoes da tela principal.
        """
        self.pushButtonInserirIcon = QtGui.QIcon(
        ":/vna-icon/add.png")
        self.pushButtonRemoverIcon = QtGui.QIcon(
        ":/vna-icon/remover.png")
        self.pushButtonVisualizarIcon = QtGui.QIcon(
        ":/vna-icon/visualizarPedido.png")
        self.pushButtonFinalizarIcon = QtGui.QIcon(
        ":/vna-icon/finalizarPedido.png")
        self.pushButtonLimparIcon = QtGui.QIcon(
        ":/vna-icon/limpar.png")
        self.pushButtonNumPedidoIcon = QtGui.QIcon(
        ":/vna-icon/ok.png")



    def setupUi(self, Dialog):
        """
        
        """
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(720, 564)
        
        self.pushButtonVisualizar = QtGui.QPushButton(Dialog)
        self.pushButtonVisualizar.setGeometry(QtCore.QRect(530, 520, 81, 41))
        self.pushButtonVisualizar.setObjectName(
                                                _fromUtf8(
                                                "pushButtonVisualizar"))
        self.pushButtonVisualizar.setIconSize(QtCore.QSize(28, 28))
        self.pushButtonVisualizar.setIcon(
                                          QtGui.QIcon(
                                          self.pushButtonVisualizarIcon))
        
        self.groupBox = QtGui.QGroupBox(Dialog)
        self.groupBox.setGeometry(QtCore.QRect(10, 10, 210, 181))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        
        self.pushButtonNumPedido = QtGui.QPushButton(self.groupBox)
        self.pushButtonNumPedido.setGeometry(QtCore.QRect(60, 110, 91, 51))
        self.pushButtonNumPedido.setObjectName(
                                               _fromUtf8(
                                               "pushButtonNumPedido"))
        self.pushButtonNumPedido.setIconSize(QtCore.QSize(42, 42))
        self.pushButtonNumPedido.setIcon(
                                         QtGui.QIcon(
                                         self.pushButtonNumPedidoIcon))
        
        self.label_3 = QtGui.QLabel(self.groupBox)
        self.label_3.setGeometry(QtCore.QRect(20, 30, 173, 23))
        font = QtGui.QFont()
        font.setPointSize(14)
        
        self.label_3.setFont(font)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        
        self.lineEditNumPedido = QtGui.QLineEdit(self.groupBox)
        self.lineEditNumPedido.setGeometry(QtCore.QRect(70, 60, 71, 23))
        self.lineEditNumPedido.setObjectName(_fromUtf8("lineEditNumPedido"))
        
        self.groupBox_2 = QtGui.QGroupBox(Dialog)
        self.groupBox_2.setGeometry(QtCore.QRect(230, 10, 261, 181))
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        
        self.treeWidget = QtGui.QTreeWidget(self.groupBox_2)
        self.treeWidget.setGeometry(QtCore.QRect(10, 30, 241, 151))
        self.treeWidget.setObjectName(_fromUtf8("treeWidget"))
        self.treeWidget.headerItem().setText(
                                             0,
                                             _fromUtf8(
                                             "Faixa dos Produtos"))
        
        self.tableWidget = QtGui.QTableWidget(Dialog)
        self.tableWidget.setGeometry(QtCore.QRect(10, 241, 701, 271))
        self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
        self.tableWidget.setColumnCount(0)
        self.tableWidget.setRowCount(0)
        
        self.line = QtGui.QFrame(Dialog)
        self.line.setGeometry(QtCore.QRect(20, 210, 681, 20))
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        
        self.pushButtonFinalizar = QtGui.QPushButton(Dialog)
        self.pushButtonFinalizar.setGeometry(QtCore.QRect(620, 520, 81, 41))
        self.pushButtonFinalizar.setObjectName(
                                               _fromUtf8(
                                               "pushButtonFinalizar"))
        self.pushButtonFinalizar.setIconSize(QtCore.QSize(28, 28))
        self.pushButtonFinalizar.setIcon(
                                       QtGui.QIcon(
                                       self.pushButtonFinalizarIcon))
        
        self.pushButtonLimpar = QtGui.QPushButton(Dialog)
        self.pushButtonLimpar.setGeometry(QtCore.QRect(440, 520, 81, 41))
        self.pushButtonLimpar.setObjectName(
                                            _fromUtf8(
                                            "self.pushButtonLimpar"))
        self.pushButtonLimpar.setIconSize(QtCore.QSize(32, 32))
        self.pushButtonLimpar.setIcon(
                                       QtGui.QIcon(
                                       self.pushButtonLimparIcon))
        
        self.groupBox_3 = QtGui.QGroupBox(Dialog)
        self.groupBox_3.setGeometry(QtCore.QRect(500, 10, 210, 181))
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        
        self.label_2 = QtGui.QLabel(self.groupBox_3)
        self.label_2.setGeometry(QtCore.QRect(50, 30, 111, 23))
        font = QtGui.QFont()
        font.setPointSize(14)
        self.label_2.setFont(font)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        
        self.spinBoxQuantidade = QtGui.QSpinBox(self.groupBox_3)
        self.spinBoxQuantidade.setGeometry(QtCore.QRect(80, 60, 61, 23))
        self.spinBoxQuantidade.setObjectName(_fromUtf8("spinBoxQuantidade"))
        
        self.pushButtonRemover = QtGui.QPushButton(self.groupBox_3)
        self.pushButtonRemover.setGeometry(QtCore.QRect(120, 110, 71, 41))
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        font.setStyleStrategy(QtGui.QFont.PreferAntialias)
        self.pushButtonRemover.setFont(font)
        self.pushButtonRemover.setObjectName(_fromUtf8("pushButtonRemover"))
        self.pushButtonRemover.setIconSize(QtCore.QSize(28, 28))
        self.pushButtonRemover.setIcon(
                                       QtGui.QIcon(
                                       self.pushButtonRemoverIcon))
        
        self.pushButtonInserir = QtGui.QPushButton(self.groupBox_3)
        self.pushButtonInserir.setGeometry(QtCore.QRect(20, 110, 71, 41))
        self.pushButtonInserir.setIconSize(QtCore.QSize(28, 28))
        self.pushButtonInserir.setIcon(
                                       QtGui.QIcon(
                                       self.pushButtonInserirIcon))
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        font.setStyleStrategy(QtGui.QFont.PreferAntialias)
        self.pushButtonInserir.setFont(font)
        self.pushButtonInserir.setObjectName(_fromUtf8("pushButtonInserir"))

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        
        self.dialog = Dialog



    def retranslateUi(self, Dialog):
        """
        
        """
        Dialog.setWindowTitle(
                              QtGui.QApplication.translate(
                              "Dialog",
                              "TSM - Pedido",
                              None, 
                              QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(
                               QtGui.QApplication.translate(
                               "Dialog",
                               "Pedido",
                               None,
                               QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(
                             QtGui.QApplication.translate(
                             "Dialog",
                             "Número do Pedido:",
                             None, 
                             QtGui.QApplication.UnicodeUTF8))
        self.groupBox_2.setTitle(
                                 QtGui.QApplication.translate(
                                 "Dialog",
                                 "Dados do Pedido",
                                 None,
                                 QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(
                             QtGui.QApplication.translate(
                             "Dialog",
                             "Quantidade:  ",
                             None,
                             QtGui.QApplication.UnicodeUTF8))
        self.pushButtonInserir.setToolTip(
                                           QtGui.QApplication.translate(
                                           "MainWindow",
                                           "Adicionar no Pedido",
                                           None,
                                           QtGui.QApplication.UnicodeUTF8))
        self.pushButtonRemover.setToolTip(
                                           QtGui.QApplication.translate(
                                           "MainWindow",
                                           "Remover do Pedido",
                                           None,
                                           QtGui.QApplication.UnicodeUTF8))
        self.pushButtonLimpar.setToolTip(
                                           QtGui.QApplication.translate(
                                           "MainWindow",
                                           "Excluir Pedido",
                                           None,
                                           QtGui.QApplication.UnicodeUTF8))
        self.pushButtonVisualizar.setToolTip(
                                           QtGui.QApplication.translate(
                                           "MainWindow",
                                           "Visualizar Pedido",
                                           None,
                                           QtGui.QApplication.UnicodeUTF8))
        self.pushButtonFinalizar.setToolTip(
                                           QtGui.QApplication.translate(
                                           "MainWindow",
                                           "Finalizar Pedido",
                                           None,
                                           QtGui.QApplication.UnicodeUTF8))
